import { sendRequest } from '@/http';

const baseUrl = '/admin/device/running';

/**
 * 查询设备运行列表
 * @param
 * @returns
 */
export const queryDeviceRunningList = (params: {
  page: number;
  pageSize: number;
  groupCode: string;
}) => {
  return sendRequest({
    url: `${baseUrl}/queryDeviceRunningList`,
    method: 'get',
    params: params as any,
  });
};

/**
 * 查询设备运行详情
 * @param deviceId 设备ID
 * @returns
 */
export const queryDeviceInfoDetail = (deviceId: string) => {
  return sendRequest({
    url: `${baseUrl}/queryDeviceInfoDetail`,
    method: 'get',
    params: { deviceId },
  });
};
